﻿using OrderSystem.Templet;
using System.Windows.Forms;

namespace OrderSystem
{
    public partial class ContentBox : FormTemplet
    {
        private ContentBox()
        {
            this.InitializeComponent();
        }

        private ContentBox(string sCaption, string sContent, string sQuestion) : this()
        {
            this.Text = sCaption;
            this.txt.Text = sContent;
            this.lblQuestion.Text = sQuestion;
        }

        public static DialogResult ShowBox(string sCaption, string sContent, string sQuestion)
        {
            ContentBox contentBox = new ContentBox(sCaption, sContent, sQuestion);
            return contentBox.ShowDialog();
        }
    }
}
